package com.kf.bigbluebook.service;

import com.kf.bigbluebook.common.DeleteRequest;
import com.kf.bigbluebook.model.dto.TeamQuery;
import com.kf.bigbluebook.model.po.Team;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kf.bigbluebook.model.po.User;
import com.kf.bigbluebook.model.request.TeamJoinRequest;
import com.kf.bigbluebook.model.request.TeamQuitRequest;
import com.kf.bigbluebook.model.request.TeamUpdateRequest;
import com.kf.bigbluebook.model.vo.TeamUserVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author 86157
* @description 针对表【team(队伍)】的数据库操作Service
* @createDate 2025-02-10 14:04:49
*/
public interface TeamService extends IService<Team> {

    Long addTeam(Team team, User loginUser);

    List<TeamUserVO> listTeams(TeamQuery teamQuery, HttpServletRequest isAdmin);

    Boolean updateTeam(TeamUpdateRequest teamUpdateRequest, User loginUser);

    Boolean joinTeam(TeamJoinRequest teamJoinRequest, User loginUser);

    Boolean quitTeam(TeamQuitRequest teamQuitRequest, User loginUser);

    Boolean deleteTeam(DeleteRequest deleteRequest, User loginUser);
}
